package com.ipzoe.mem.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ipzoe.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ipzoe.common.core.domain.BaseEntity;

/**
 * 会员卡对象 mem_member_card
 * 
 * @author eric
 * @date 2020-08-20
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mem_member_card")
public class MemberCard implements Serializable {

private static final long serialVersionUID=1L;


    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 卡号 */
    @Excel(name = "卡号")
    private String cardNum;

    /** 会员套餐id */
    @Excel(name = "会员套餐id")
    private Long packageId;

    /** 经销商id */
    @Excel(name = "经销商id")
    private Long dealerId;

    /** 有效期 */
    @Excel(name = "有效期" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expiryDay;

    /** 会员卡状态，数据字典 */
    @Excel(name = "会员卡状态，数据字典")
    private Integer status;

    /** 使用的会员id */
    @Excel(name = "使用的会员id")
    private Long memberId;

    /** 使用时间 */
    @Excel(name = "使用时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date useTime;

    /** $column.columnComment */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** $column.columnComment */
    private String createBy;

    /** $column.columnComment */
    private String updateBy;

    /** $column.columnComment */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /** $column.columnComment */
    private Integer delFlag;
}
